<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label for="c-image" class="control-label col-xs-12 col-sm-2">截图凭证:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-image" data-rule="" class="form-control" size="50" type="text" value="{$row.image_text}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-image"></ul>
        </div>
    </div>

    <div class="form-group">
        <label for="c-call_image" class="control-label col-xs-12 col-sm-2">通话截图:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-call_image" data-rule="" class="form-control" size="50" type="text" value="{$row.call_image_text}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-call_image" class="btn btn-danger faupload" data-input-id="c-call_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-call_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-call_image" class="btn btn-primary fachoose" data-input-id="c-call_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-call_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-call_image"></ul>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Audit_status')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-audit_status" class="form-control selectpicker" name="row[audit_status]">
                <option value="0">请选择</option>
                <option value="2">通过</option>
                <option value="3">驳回</option>
            </select>

        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">失败原因:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-error_msg" class="form-control" name="row[error_msg]" type="text" value="{$row.error_msg}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">追回佣金:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                <label for="row[zhui_money]-1" onclick="dianji(1)">
                    <input id="row[zhui_money]-1" name="row[zhui_money]" type="radio" value="1"/> 否
                </label>
                <label for="row[zhui_money]-2" onclick="dianji(2)">
                    <input id="row[zhui_money]-2" name="row[zhui_money]" type="radio" value=2"/> 是
                </label>
            </div>

        </div>
    </div>
    <div class="form-group" id="rebate_recover_msg" style="display: none">
        <label class="control-label col-xs-12 col-sm-2">{:__('Rebate_recover_msg')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-reason" class="form-control" name="row[rebate_recover_msg]" type="text" value="">
        </div>
    </div>


    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>

<script>
    function dianji(type){
        if(type == 1){
            $('#rebate_recover_msg').hide();
        }else{
            $('#rebate_recover_msg').show();
        }
    }
</script>
